Using image layers

Image layer is used for displaying a single or a render target texture.

Creating image layers

To create an image layer:

  1. In the Project right-click the object where you want to create an Image Layer and select Create > Image Layer.
  2. In the Properties set the Texture property to the texture you want to display on the image layer.
    The layer inherits the width and height from the texture. To set a different size, add and set:
  3. Set the alignment of the layer by setting the Horizontal Alignment and Vertical Alignment properties.

You can use a layer material to create dynamic shading effects for the displayed texture. For example, you can use materials to transform the image to gray scale to indicate that the application is inactive.

Using textures with transparency in image layers

By default image layers are rectangular. For different shapes use a transparent texture and transparent background for the layer.

To use a texture with transparency in an image layer:

  1. In the Project select an existing or create a new image layer.
  2. In the Properties set the Texture property to a texture with transparency you want to display on the image layer.
  3. In the Properties click Add Properties, add Layer Background Brush Color and set its alpha and color values.

Enabling a layer to receive touch input

To enable a layer to receive touch input:

  1. Select an existing or create an new layer and click Add Properties.
  2. In the Add Properties window add Hit Testable property.
  3. In the Properties enable the Hit Testable property.

Enabling a layer to receive click actions

To enable a layer to receive click actions:

  1. Select an existing or create an new layer and click Add Properties.
  2. In the Add Properties window add Enable Click property.
  3. In the Properties enable the Enable Click property.

See also

Using triggers